package dflow.domain.Dto;

import dflow.domain.Blog;
import dflow.domain.EntityBase;

import java.util.HashSet;
import java.util.Set;

/**
 * Created by dustin on 2017/7/16.
 */
public class UserWithBlogs  extends EntityBase<Integer>{
    //private Long id;
    private String nickname;
    private Set<Blog> blogs=new HashSet<Blog>();

    public UserWithBlogs(Integer id, String nickname) {
        this.id = id;
        this.nickname = nickname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Set<Blog> getBlogs() {
        return blogs;
    }

    public void setBlogs(Set<Blog> blogs) {
        this.blogs = blogs;
    }

}
